<?php

class UserController extends Controller
{
    public function index()
    {
        $provider=new DataProvider('User',array(
            'sort'=>true,
            'paging'=>true,
            'elementsCount'=>true,
            'filter'=>true,
        ));

        $this->render(array(
            'title'=>'Пользователи',
            'dataProvider'=>$provider,
        ));
    }

    public function test()
    {
        exit('TEST OK!');
    }
}